package com.mes.basicdata.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bstek.dorado.annotation.DataProvider;
import com.mes.basicdata.dao.iface.IClassInformationDao;
import com.mes.basicdata.domain.ClassInformation;
import com.mes.common.service.BasicService;

@Service
public class ClassInfoService extends BasicService<ClassInformation> {

	@Autowired
	private IClassInformationDao classInformationDao;
	
	
	@DataProvider
	public List<ClassInformation> getChildClassInofs(String parentClassId) throws Exception{
		return classInformationDao.findByProperty("parentClassUid", parentClassId);
	}
	
	//根据类型查询
	@DataProvider
	public String getClassNameByClassId(String classId, String sortId){
		return classInformationDao.getClassNameByClassId(classId, sortId);
	}
}
